<!doctype html> 
<html ng-app='text'> 
<head> 
    <meta charset="utf-8"> 
    <title></title> 
    <script type="text/javascript" src='angular.js'></script>
    <script type="text/javascript">

    var app = angular.module('text',[]);
    app.controller('const',function ($scope){
    	$scope.a = '';
    	$scope.arr = [
		'陈紫鑫','韩其良','王越超','张瑞希','张瑞','吴晗','王旭','李钰主','李雪慈','李篡','刘占红','张东','白欣雨','任美玲','李宁宁','石奕飞','田新锋','宋海静','范金','张会会','刘佳妮','李博','伊栋栋','齐弦','彭岩'
		];
    });
    app.directive('leo',function (){
    	return {
    		'restrict':'E',
    		'template':
    			'<input ng-model="a">\
    				<ul>\
    					<li ng-repeat="i in arr" ng-show="i.indexOf(a)!=-1?true:false">{{i}}</li>\
    				</ul>'
    	}
    })
    </script>
</head>
<body ng-controller='const'>
<leo/>
</body>
</html>